#include "thread_pool.hpp"
#include <unistd.h>

int main()
{
    ThreadPool* tp = ThreadPool::GetSInstance();
    tp->Start();

    int i = 0;
    while(1)
    {
        tp->Push(i);
        std::cout << "push:" << i++ << std::endl;
        if(i == 10) break;
    }
    sleep(20);

    return 0;
}